package org.easyelf.springmvc.plugins.easyui;

import java.io.Serializable;

public class Combobox implements Serializable {

	private static final long serialVersionUID = 1121706380935534126L;
	
	public String id;
	public String text;
	public boolean selected = false;

	public Combobox(String id, String text, boolean selected) {

		this.id = id;
		this.text = text;
		if (selected)
			changeSelect();

	}

	public void changeSelect() {
		this.selected = true;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

}
